import store from "@store";
export default {
  methods: {
    // 表头bgc
    headerStyle() {
      console.log(
        store.state.config.isWhiteTheme,
        "store.state.config.isWhiteTheme"
      );
      if (store.state.config.isWhiteTheme) {
        return "background: #FFFFFF;border-top: 1px solid #ebe9f1;border-bottom: 1px solid #DBDADE;color:#5d596c;";
      } else {
        return "background: #2F3349;border-top: 1px solid #3b4253;border-bottom: 1px solid #434968;color:#cfd3ec;";
      }
    },
    // 表格隔行显示不同颜色
    tableRowClassName({ row, rowIndex }) {
      if (rowIndex % 2 === 1) {
        return "warning-row";
      } else if (rowIndex % 2 == 0) {
        return "success-row";
      }
      return "";
    },
  },
};
